/*----------------------------------------------------------\\
|| Mancala                                                  ||
|| CS-340 with Professor Troy                               ||
|| Joshua Jung and Eugene Magdel                            ||
|| April 29, 2011                                           ||
\\----------------------------------------------------------*/
#include <stdlib.h>
#include <time.h>
#include <iostream>
#ifndef BOARD_H
#define BOARD_H
#include "cup.h"
  class MancalaAi;
  using namespace std;

  // Cup position constants
  const int CUP_SCORE_P0 = 7;
  const int CUP_SCORE_P1 = 0;

  const int CUP_START_P0 = 1;
  const int CUP_START_P1 = 8;

  class Board{
    private:
      Cup* cup;
      int my_player_number;
      int opponent_player_number;
      int players_turn;
      
    public:
      Board();
      bool move(int, int player_for = -1);
      int get_scores(int);
      int won_by();
      void toggle_turn();
      int get_turn() {return players_turn;}
      void set_turn(int);
      void print_board();
      int winner_is();
      friend class MancalaAi;
  };

#endif
